package cn.tedu.bs.admin.pojo.param;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Range;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.Date;

@Data
public class ProjectMonthlyUpdateInfoParam implements Serializable {
    @NotNull(message = "添加统计失败，必须提交统计名称！")
    @ApiModelProperty(value = "名称", required = true, example = "测试项目1")
    private String projectName;

    @Range(min = 0, message = "必须是大于等于0的整数")
    @ApiModelProperty(value = "必须是大于等于0的整数", required = true, example = "10")
    private Integer price;

    @Range(min = 0, message = "必须是大于等于0的整数")
    @ApiModelProperty(value = "必须是大于等于0的整数", required = true, example = "10")
    private Integer totalValue;

    @Range(min = 0, message = "必须是大于等于0的整数")
    @ApiModelProperty(value = "必须是大于等于0的整数", required = true, example = "10")
    private Integer totalNumber;

    @ApiModelProperty(value = "美容部位", required = true, example = "部位1")
    private String parts;

    @NotNull(message = "必须提交统计统计日期")
    @ApiModelProperty(value = "统计统计日期", required = true, example = "2017-01-01 00:29:30")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date time;

}
